<!-- Star of Main -->
<div class="main mt10" >
    <!-- Star of area2s -->
    <div class="area2s">
    	<!-- Star of Col1 -->
    	<div class="col1">
			<div class="breadCrumb">
				<div class="fl"><span class="cRed fb">当前位置：</span> <a href="<?php echo CHtml::normalizeUrl(array('/')) ?>">首页</a>&nbsp;&rsaquo;&nbsp;<strong>个人中心</strong></div>
            </div>    
			<div class="member mt10">
				<?php $this->widget('ProfileLeftNav') ?>
				<div class="memberMain">
					<div class="memberMain-inner mer-allques">
						<div class="merber-title"><h2 class="cRed"><span class="mem-icon mem-editdata"></span>你参与过的心理测试</h2><span class="title-intro"><?php if( ! count($userPsytests) > 0) : ?>你还没有参与过心理测试，点击<a href="<?php echo CHtml::normalizeUrl(array('/psytest/list')) ?>">这里</a>看看有哪些心理测试。<?php endif ?>您的心理测试结果记录在这里，作为您心理档案的一部分，只有您自己才能看得到。</span></div>
						<?php if(count($userPsytests) > 0) : ?>
						<ul class="quesList" id="quesList">
						<?php foreach($userPsytests as $userPsytest) : ?>
							<li class="quesItem">
								<table cellpadding="0" cellspacing="0" border="0" width="100%">
									<tr>
										<td><?php if($userPsytest->topic->category !== null) : ?><span class="cGre">[<a target="_blank" href="<?php echo CHtml::normalizeUrl(array('/admin/psytest/list', 'id' => $userPsytest->topic->category->psyTestCategoryId)) ?>" class="cGre"><?php $this->beginWidget('CHtmlPurifier'); ?><?php echo $userPsytest->topic->category->categoryName ?><?php $this->endWidget('CHtmlPurifier'); ?></a>]</span><?php else: ?><span class="cGre">[未分类]</span><?php endif ?></td>
										<td><a href="<?php echo CHtml::normalizeUrl(array('/psytest/index', 'id' => $userPsytest->topic->topicId))?>" target="_blank"><?php $this->beginWidget('CHtmlPurifier'); ?><?php echo $userPsytest->topic->topicTitle ?><?php $this->endWidget('CHtmlPurifier'); ?></a></td>
										<td class="tr"><span class="data">于<?php echo fromNow($userPsytest->doneAt) ?></span><a href="<?php echo CHtml::normalizeUrl(array('/psytest/index', 'id' => $userPsytest->topic->topicId))?>" class="cOrg" target="_blank">查看测试结果</a></td>
									</tr>
								</table>
							</li>
						<?php endforeach ?>
						</ul>
						<?php endif ?>
                        <div class="page1 mt10">
                            <?php $this->widget('CLinkPager', array('pages' => $pages)); ?>
                        </div>
                        <div class="cb"></div>
					</div>
				</div>
			</div>
        </div>
        <!-- End of Col1 -->
        <!-- Star of Col2 -->
        <div class="col2">
			<?php $this->widget('SearchBox') ?>
			<?php $this->widget('MustKnow') ?>
			<?php $this->widget('HotPosts') ?>
        </div>
        <!-- End of Col2 -->
    </div><!-- End of area3s -->
</div>
<!-- End of Main -->
<script type="text/javascript">
//1.jQuer表格换行变色及高亮显示。
	$(document).ready(function(){
		$("ul#quesList li.quesItem").mouseover(function(){
			$(this).addClass("over");}).mouseout(function(){
			$(this).removeClass("over");})
		$("ul#quesList li.quesItem:odd").addClass("alt");
	});
</script>
